package net.duohuo.dhroid.net.callback;

import net.duohuo.dhroid.net.callback.AbsCallback;
import net.duohuo.dhroid.net.convert.StringConvert;

import okhttp3.Response;

/**
 * ================================================ 作 者：廖子尧 版 本：1.0
 * 创建日期：2016/9/11 描 述：返回字符串类型的数据 修订历史：
 * ================================================
 */
public abstract class StringCallback extends AbsCallback<String> {

	@Override
	public String convertSuccess(Response response) throws Exception {
		String s = StringConvert.create().convertSuccess(response);
		response.close();
		return s;
	}
}